package com.GZX.Test;

import java.util.ArrayList;
import java.util.List;

public class scSelect {
    public static void main(String[] args) {
        List<Course> courses = new ArrayList<>();

        //设置有几门课
        for (int i = 1; i <= 5; i++) {
            courses.add(new Course("课程" + i, 20));
        }

        // 创建10个学生线程
        for (int i = 1; i <= 100; i++) {
            Student student = new Student("学生" + i, courses);
            Thread stuThread = new Thread(student);
            stuThread.start();
        }
    }
}